package com.raowb.common.base.entitys;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * ID父类
 */
public abstract class BaseIDEntity implements Serializable{

	protected static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId("id")
	//@JsonSerialize(using=ToStringSerializer.class)
	protected Long id;
	
//	/**
//	 * 乐观锁
//	 */
//	@Version
//	@JsonIgnore
//	protected Integer version;

	/**
	 * 是否删除
	 */
	@JsonIgnore
	protected Integer del;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}
}
